/*
 * @Author: 飞越疯人院 353362604@qq.com
 * @Date: 2022-10-13 08:30:36
 * @LastEditors: 飞越疯人院 353362604@qq.com
 * @LastEditTime: 2023-01-06 15:08:57
 * @FilePath: \adminstration\src\Common\Modal\TwoModalList\Organization.jsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import { API_LIST } from '../../Api/Api'

export const ProjectFormItem = async ({ data }) => {
    let dataList = {
        uuid: data.uuid,
        type: '项目字段',
        hideInSearch: true,
        pageSize: 10,
        params: { OrganizationUuid: data.uuid },
        classification: 'EditTableModalTwo',
        get: API_LIST([data.uuid])['getProjectFormItem'],
        pos: API_LIST([data.uuid])['posProjectFormItemBatch'],
        columns: [
            { title: '表单名称', dataIndex: 'tableName' },
            { title: '识别码', dataIndex: 'code' },
            { title: '排序字段', dataIndex: 'sortId' },
            // { title: '字段类型', dataIndex: 'formItemType' },
            { title: '备注', dataIndex: 'remark' },
            { title: '操作', valueType: 'option', render: () => null },
        ],
        field: ['tableName', 'code', 'sortId', 'remark'],
        additional: { organizationUuid: data.uuid },
    }
    return dataList
}
